<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>C++ Web Framework: SqlDatabaseStorage Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">C++ Web Framework
   &#160;<span id="projectnumber">3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_sql_database_storage-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SqlDatabaseStorage Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_sql_database_storage.html" title="The SqlDatabaseStorage class allows you to reuse connections made to the database through the QSqlDat...">SqlDatabaseStorage</a> class allows you to reuse connections made to the database through the QSqlDatabase class within QThreadPool.  
 <a href="class_sql_database_storage.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="sqldatabasestorage_8h_source.html">sqldatabasestorage.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a691465c618b8050f5c67543f57fc4d15"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#a691465c618b8050f5c67543f57fc4d15">SqlDatabaseStorage</a> (const QString &amp;type=&quot;&quot;, const QString &amp;hostName=&quot;&quot;, const QString &amp;databaseName=&quot;&quot;, const QString &amp;userName=&quot;&quot;, const QString &amp;password=&quot;&quot;, int port=0)</td></tr>
<tr class="memdesc:a691465c618b8050f5c67543f57fc4d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">This constructor receives informations to create a connection to the database.  <a href="#a691465c618b8050f5c67543f57fc4d15">More...</a><br /></td></tr>
<tr class="separator:a691465c618b8050f5c67543f57fc4d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af63f84ae9263c490325f10bbb352c983"><td class="memItemLeft" align="right" valign="top"><a id="af63f84ae9263c490325f10bbb352c983"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#af63f84ae9263c490325f10bbb352c983">getType</a> () const</td></tr>
<tr class="memdesc:af63f84ae9263c490325f10bbb352c983"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type. <br /></td></tr>
<tr class="separator:af63f84ae9263c490325f10bbb352c983"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f87803a1217305b4bc05fd13bf36ba6"><td class="memItemLeft" align="right" valign="top"><a id="a1f87803a1217305b4bc05fd13bf36ba6"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#a1f87803a1217305b4bc05fd13bf36ba6">getPassword</a> () const</td></tr>
<tr class="memdesc:a1f87803a1217305b4bc05fd13bf36ba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the password. <br /></td></tr>
<tr class="separator:a1f87803a1217305b4bc05fd13bf36ba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23a969c1fd094a15b1787add541e9bb5"><td class="memItemLeft" align="right" valign="top"><a id="a23a969c1fd094a15b1787add541e9bb5"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#a23a969c1fd094a15b1787add541e9bb5">getHostName</a> () const</td></tr>
<tr class="memdesc:a23a969c1fd094a15b1787add541e9bb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the host name. <br /></td></tr>
<tr class="separator:a23a969c1fd094a15b1787add541e9bb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69dd2e9296bc727fa396316d1746dee8"><td class="memItemLeft" align="right" valign="top"><a id="a69dd2e9296bc727fa396316d1746dee8"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#a69dd2e9296bc727fa396316d1746dee8">getDatabaseName</a> () const</td></tr>
<tr class="memdesc:a69dd2e9296bc727fa396316d1746dee8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the database's name. <br /></td></tr>
<tr class="separator:a69dd2e9296bc727fa396316d1746dee8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc4b98c1eb06e868ce0b317aa381a899"><td class="memItemLeft" align="right" valign="top"><a id="afc4b98c1eb06e868ce0b317aa381a899"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#afc4b98c1eb06e868ce0b317aa381a899">getUserName</a> () const</td></tr>
<tr class="memdesc:afc4b98c1eb06e868ce0b317aa381a899"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the user's name. <br /></td></tr>
<tr class="separator:afc4b98c1eb06e868ce0b317aa381a899"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0079bd639d2e4ba91c9b007a6af263"><td class="memItemLeft" align="right" valign="top"><a id="acf0079bd639d2e4ba91c9b007a6af263"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#acf0079bd639d2e4ba91c9b007a6af263">getPort</a> () const</td></tr>
<tr class="memdesc:acf0079bd639d2e4ba91c9b007a6af263"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the port. <br /></td></tr>
<tr class="separator:acf0079bd639d2e4ba91c9b007a6af263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4184a8138d1f65bc644825f587436aea"><td class="memItemLeft" align="right" valign="top"><a id="a4184a8138d1f65bc644825f587436aea"></a>
QSqlDatabase &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sql_database_storage.html#a4184a8138d1f65bc644825f587436aea">getDatabase</a> ()</td></tr>
<tr class="memdesc:a4184a8138d1f65bc644825f587436aea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the existing connection to the current thread's database. If there is no open connection to the current thread, a new connection will be created and returned. <br /></td></tr>
<tr class="separator:a4184a8138d1f65bc644825f587436aea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_sql_database_storage.html" title="The SqlDatabaseStorage class allows you to reuse connections made to the database through the QSqlDat...">SqlDatabaseStorage</a> class allows you to reuse connections made to the database through the QSqlDatabase class within QThreadPool. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a691465c618b8050f5c67543f57fc4d15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a691465c618b8050f5c67543f57fc4d15">&#9670;&nbsp;</a></span>SqlDatabaseStorage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SqlDatabaseStorage::SqlDatabaseStorage </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>type</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>hostName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>databaseName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>userName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>password</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This constructor receives informations to create a connection to the database. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QString &amp;type : Driver type. </td></tr>
    <tr><td class="paramname">const</td><td>QString &amp;hostName : Sets the connection's host name to host. </td></tr>
    <tr><td class="paramname">const</td><td>QString &amp;databaseName : Sets the connection's database name to name. </td></tr>
    <tr><td class="paramname">const</td><td>QString &amp;userName : Sets the connection's user name to name. </td></tr>
    <tr><td class="paramname">const</td><td>QString &amp;password : Sets the connection's password to password. </td></tr>
    <tr><td class="paramname">int</td><td>port : Sets the connection's port number to port. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/<a class="el" href="sqldatabasestorage_8h_source.html">sqldatabasestorage.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 28 2018 11:09:09 for C++ Web Framework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
